using System;
using System.ComponentModel;

namespace BassMati.Tutorials.Setup.CustomActions
{
	/// <summary>
	/// Custom actions for the installer.
	/// </summary>
	
	[RunInstaller(true)]
	public class SetupCustomAction : System.Configuration.Install.Installer
	{
		public SetupCustomAction( )
		{
			System.Diagnostics.Trace.WriteLine( "SetupCustomAction .ctor" );
		}

		public override void Install ( System.Collections.IDictionary stateSaver )
		{
			System.Diagnostics.Trace.WriteLine( "SetupCustomAction.Install" );
			base.Install ( stateSaver );
//			System.Diagnostics.Debugger.Launch( );
			HelloForm form = new HelloForm( );
			form.ShowDialog( );
			form.Dispose( );
		}

		public override void Commit ( System.Collections.IDictionary savedState )
		{
			base.Commit ( savedState );
		}

		public override void Rollback ( System.Collections.IDictionary savedState )
		{
			base.Rollback ( savedState );
		}
		
		public override void Uninstall ( System.Collections.IDictionary savedState )
		{
			base.Uninstall ( savedState );
		}
	}
}